gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible
authordjb <db0451@gmail.com>
Sun, 2 Oct 2016 22:16:46 +0000 (23:16 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 10 Oct 2016 19:13:50 +0000 (15:13 -0400)
commitfe6030a41be6887d298a63aa79959e08c1c0a192
tree9411bf5eb0c87a9436f6ec89b026f9b12332d68a
parent0d00e0c3d3eaea8518080d986208eb0f1b92f355
gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible

...by putting it in a stack. The busy_spinner and eject_button are
mutually exclusive, but only the latter was coded to ensure that its
visibility did not cause the rest of the row to reflow. By putting both
widgets in a stack and setting child_visible on that, the row allocates
enough space to show one - or none - at once, avoiding any misalignment.

https://bugzilla.gnome.org/show_bug.cgi?id=772345

https://bugzilla.gnome.org/show_bug.cgi?id=772348
gtk/gtkplacesviewrow.c
gtk/ui/gtkplacesviewrow.ui